Uses recursive division of the matrix chain to find the optimal multiplication order.
Explain code with DocComment! Try out your own code!