Simpler formulation for  Dual distance.