Six years ago, Domino’s admitted it made terrible pizza. Now its stock returns have outpaced Google’s