You might try to decrease the number of loops so that the program is a bit faster and morethough it becomes less accurate also .Also you may consider to program each body with respect to other and then integrate all the other possibilities(This might not work ,I am not confident).