kernsm function

Kernel smoothing on a 1D, 2D or 3D grid