Improved fast wavelet transform