astar Algorithm that implements the A* path planning algorithm. It takes a numpy array map as an input.