Update wavelet-matrix.cpp