Create A* Algorithm