Add dijkstra's shortest path method