Rem/modulo function for integers

The BEAM provides :math.fmod/2 which is a trivial wrapper over the C stdlib fmod.