Add quick-selection algorithm for finding the nth-element. O(n).