Add BFS, DFS, topologically sorting