QuickSort using 3-way partition.
Select kth number algorithm.