Best First Search pathfinder