a port of the nbody simulation to opengl