Implementing the modulus operator.