added multi-dimensional wavelets