added initial framework for building octree from bottom-up