implement a complete wavelet analysis, pretty good