Class project using Dijkstra's algorithm.