Simple C++ implementation of Dijkstra's shortest path algorithm.