CalculateCentralMoments and calculateMoments functions are not local any more. Additionally they got '3D' suffix.
removed 's' from functionnames
removed 's' from functionnames
added functions for 1D and 2D.