Implementation Detail of 2D wavelet