Finished quadtree implementation.