Faster version of non-local means denoising for 2D greyscale images