1. remove mathlib.h and mathlib.c from the commit
2. find another 'safe-to-use' solution at the minimum number of lines of code
3. double check the License and make it clearly written in the source file