Using Dijkstra Algorithm to replace Bellman-Ford algorithm.
Execution time is reduced from 32ms to 16ms approximately.