Implemented getChar in WaveletTree