Some code to test n-body problem performance