add decode, so we can get any char at any position from wavelet tree