Added math library to RIM

requested