add upsampling utility function
make inverse_wavelet_1d test less random
make inverse_wavelet_1d use upsample function