Implement fast SCC for undirected graphs