A generic A-Star algorithm without node value evaluation.