Base math classes for CIS