maxResidualGroups