cosmological n-body code