Add build script for npy_math and add some math functions