Updated quicksort