Breadth First Search in a Graph