created common base class for all four DWT kernels