moved math3 library outside src