Basis wavelet routines for timeseries analysis