Improved QuickSort