added a new class for calculating IPA and added some example code in the
class IL1FactorGraphConstructor.