Astar algorithm with out heuristic, Dijkstra