Variation of MatrixChainProblem is added