Create math library