add kosarajus algorithm
updated dijkstra's algorithm