Update Kosaraju Algorithm