Fixed issues with DFS and Kosaraju