Go implementation of the A* search algorithm