add local math lib

Signed-off-by: DayongLi <DLi@esri.com>