Add improved quicksort