An n-body simulator and visualizer