Add BFS solution