NBody type problems