wavelets in R