Added a new function mod to get the remainder of two numbers.