Added breadth first search