Exact Dynamics of Multi-class Stochastic Gradient Descent