Changing wavelet decomposition algorithm