This program finds the most efficient parenthesization for multiplying a given set of matrices.