Renamed BigInteger.smallRem to partition, which is more accurate, and added tests.