Wavelet tree with RRR structure as nodes