Lecture 9: Dynamic Programming: Logcutter, MatrixChain