dfs version
dfs &  bfs
spiralMatrix