Solver of heterogenesou multiclass model with creeping (Matlab)