Statistical Mechanics of the Mixture of Experts