How software saved a stealth fighter jet—and its pilot—from crashing in Alaska