Adding support for building wavelet trees using uchar arrays