Initial work on dijkstras