MultiscaleNLM modified version (pushed on a better folder)