homework 15 Dijkstra’s algorithm