simple wavelet transform