added CofactorMatrix