non-local-means: WIP add implementation of NLM denoising with loops swapped