Barnes-Hut tree-code