An example of the A* algorithm.