Updating Math

Added tests. Added generic code to handle int in map() when dividing,
converts to double, then back to int before returning.