add a O(n*kth) selection algorithm and use it for very small kth

removes the need for the minimum trick in even element median and is
also useful for interpolating percentile.