10 years ago, The New York Times was dying. Now, it's minting money. Here's something we can learn.