A simple implementation of one dimensional and two dimensional Haar wavelets.