n-body improvements
n-body: calculate in three dimensions