add breadth first search