Improved performance of Dijkstra and shortest path algorithms