algo4: dfs: Search shortest path in a maze