Dijkstra: Algorithm to tell the smallest cost to reach from source to destination