mp_integer: implement modulo operation.