added SCC algorithm