Added mod function. Done with BigInteger