final changes to quicksort