templated mass center functions
Update geometry.h

minimum image
Merge remote-tracking branch 'upstream/master'