improvement to dijkstra algorithm