add matrix chain multiplication problem of dynamic programming