matrix function

Matrix manipulation with gmp