merge astar