Added A* search algorithm.