Removed redundant extra types and implemented Quadtree.