Fm index + Wavelet tree implementation