Update cmathfuncs.c

added clamp_min, clamp_max funcs