Finished quicksort