strongly connected component working. Debug value corruption. Write tests