kosaraju's algorithm and graph data structure