speeding up n-body