Bug fixes in octree creation. Finished octree hierarchy test, which is passing correctly.