Congruence properties of two-generated varieties