add Dijtstra algorithm for shortest way in graph.