basic octree collapsing