kth small/large in RBT, rank/range count hash
fixed RBT ksmallest and klargest