Passing functions to a_star, reduced copy/pasta.
Uniform cost calls A* with no heuristic.