order statistic through pivot