Speed up forward and reverse method of the Fast Wavelet Transform
algorithm.