parallel version of N body on tree average