Trying out my own dijkstra-based solution
Trying out my own dijkstra-based solution