ComputeTripletFactors implemented.