multiply MatrixChain