NBody simulator; basic, parallel and barnes-hut version