Algorithm

updated BFS