Kth smallest by random partitioning
quicksort