結果 : algorithm for multiplying a sequence of matrices