quicksort first k