Update the Qsort-based find the kth