add efficient order statistic