Major refactor of octree, treenode, octreenode created