Simplified WaveletTree construction