Update nbody_chisq.c

Previously, this calculation was wrong.  Fixed to reflect notes on conversation with Magdon-Ismail and Newberg.  Confirmed to be a valid metric for a metric space.