General purpose A-star, shortest path router