edit WaveletMatrix.cpp