First version: Wavelet Compression