added Dijkstra Algorithm rules