Sketch of A* search algorithm.