add a BFS solution, TLE