make_kernel_dist function

Calculate 1D, 2D, or 3D kernel smooth distribution