矩阵光速幂
#define flc_INF LLONG_MAX
vector<vector<int> >m_qpow(vector<vector<int> >a,int b,int p=flc_INF){
vector<vector<int> >ans=build_1(a.size());
while(b){
if(b&1){
ans=m_cheng(a,ans,p);
}
a=m_cheng(a,a,p);
b>>=1;
}
return ans;
}