An example of Dijkstras Algorithm