An example of the A* search algorithm.