Finds the optimal parenthesization of matrix multiplication to minimize the number of scalar multiplications.
Explain code with DocComment! Try out your own code!