started adding dijkstras algorithm