Add basic math algorithms