Added A* Algorithm.