Add Implementation of Barnes-Hut algorithm.