added math library to gpsIMUThread.