Used a quadtree data structure to search through quadrants of a graph