Update Matrix Chain Multiplication