An AStar algorithn example