small changes to quicksort