Added A* search.