Multiary Wavelet Tree and RRR