QuickSort modified