Update BreadthFirstSearch