The New York Times is growing digital revenue by thinking like a retailer