Added Dijkstras algorithm for graphs.