m[i, j] = m[i, k] + m[k+1, j] + Pi-1 * Pk * Pj
矩陣鏈乘積的最佳計算順序
https://www.techiedelight.com/zh-tw/matrix-chain-multiplication/