Basic wavelet routines for time series and image analysis