adapted algorithm to new signature requirements.
changed plot to show difference.
adapt main to plot Haar wavelet.