Added Quadtree and Octree implementation in one.