finished quicksort