SCC in linear time