simple math library