Adding Shortest Paths with Dijkstras algorithm O(ElogV)