an n-body gravitational simulation with simple accretion dynamics