Update Kosaraju Algorithm and Delete unused functions