unification of equality constraints and substitution of constraints and mgus