Create MathHelpers.hh

Adding Helpers for modular arithmetic