SMS: Nonlocal approximation of nonlinear diffusion equations