SEIRnStages function

SEIR model with n stages (P 3.5).