BFS Breadth First Search Algorithm that searches a graph. This particular implementation can be used to count how many chunks are in the graph.