enh: Implemented shortestPath and cheapestPath using Dijkstra.