implmeneted computation of dipole constraint 2x2 cond matrix
implemented dipole constraint