Matrix Chain Multiplication In Dynamic Programming