Add the octree implementation

the oct and quad need to combine as one