Added distance problem solution with Dijkstra's algorithm.