Model predictive control for multiclass freeway traffic