Kth Smallest Select Algorithms (Java)