Added breadth first search for graph based on Skienar