dijkstra algorithm solved example