Modified the BarnesHut example to use OpenMP and MPI.