pub fn matrix_pow(s: Vec<Vec<usize>>, m: usize, x: usize) -> Vec<Vec<Modint>>
行列累乗です 行列Sのx乗をO(logx)で計算します
S
x
O(logx)