[Algorithm] update Dijkstra