added primitive octree implementation