Implemented Kosaraju's algorithm to calculate strong connected components in directed graphs