ComputeEqualPairwiseFactors implemented.