Initial work on SCC algorithm