update to quicksort