a few days ago, someone mentioned simplectic integrators. I would like to point out that there is a fair amount of literature/codes in the context of celestial mechanics which you can acces via
cdsads.u-strasbg.fr/abstract_service.html typing say Symplectic maps for the n-body problem in the title (e.g. a paper by Wisdom, Jack; Holman, Matthew)