partial quicksort