Created math helper class

Started it out with divisor-dependent modulus.
Added surface helpers and bounds checking

Also, all methods now use the world-mask helpers from Dimens. GetSurface
is used for finding the location of the ground based on wall mode.