segment pair costs added to linear cost function. ObjectiveGenerator and GoldStandardCostFunction also takes segmentPair terms in their inputs