NBody: test + implementation