Nifty implementation of Dijkstra's for our data structures/algos class.