Implemented the Haar PURE denoising