add DFS and linkedlist