Implemented octree branching