Optimal Matrix Chain Multiplication

Implementation of the optimal matrix chain multiplication algorithm in Python.