QuickSort refined