fixing quicksort