lib/a_star: use heuristic

Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>