Barnes-Hut Algorithm implementation for cell clusters