[2]-working in list.c
finish dfs(depth-first search)