wavelet: works up to first iteration of backward transform