compare Dijkstra and AStar