A Generic Math library