Added modulo, compare, isPrime.

Modulo, compare, and primality testing methods added. Compare is a more
robust replacement for equals, isGreaterThan, and isLessThan.