RRR方法实现rank/select