Fixed an error in Function CartesianCoordinates::weightedCenter

The calculation of the center of mass was incorrect. The prefactor was
1/(N*M), now it is 1/M