linear time SCC