Update sumProdElimVar.m

Modify tmp = zeros(nZGroups,1) as tmp = zeros(m*nZGroups,1)