結果 : write an algorithm of matrix chain multiplication