Finish quicksort