Why are we all arguing about this if there is already a mod that implements N-body for KSP? It even positions celestial objects according to the calculations, with some changes because the stock system is unstable.
https://github.com/mockingbirdnest/Principia