bidirectional astar search