Add DFS solution.