Limit models for a new general class of multitype branching processes with memory and population dependence