Find the optimal order of multiplying a matrix chain
mcm_optimal_order(x)
x
A numeric vector of matrix dimensions