Order statistics in binary search tree