WIP - WaveletMatrix::build()