Homework for lab 10 (Dijkstra and distance between 2 nodes)