Binary wavelet decomposition