Working on BFS Search of a Graph