Create barnesdist.py

This file hold the distribution functions for the Barnes-Hutt sim