first working nbody simulation