mat_power
computes the j:th power of a square matrix A using
exponentiation by squaring.
mat_power(A, j)
A matrix which is A raised to the power j.
A square numeric matrix.
A natural number representing the power to which the matrix will be raised.