Adds neighbor-weighting to com calculation