working on wavelets, added a resampling method in signals, need further
testing though