Design Of a Pick-And-Place Robot with Computer Vision and Optimized Sorting Algorithms