practice for Dijkstra Algorithm to solve single-source shortest path
problem