working on Kosaraju Algo