MPI parallelization of Piet Hut's nbody_sh1.
Original is available at http://www.ids.ias.edu/~piet/act/comp/algorithms/starter/index.html
This is ready to compile and run on your Raspberry Pi cluster. But it will be slow. The code may scale on 4 nodes with 400 bodies or more.