cleaned up basic octree implementation. Not yet optimized.