HW 9 on Dijkstra's algorithm