Calculation of anomalous dimensions for the nonlinear sigma model