Modified Tarjan SCC Algorithm