N-body simulation program.