Update nbody_mass.c

Removed recursive factorial.