implement order statistic, O(n) in the average case