The Gambler Who Cracked the Horse-Racing Code