Adjusted j_math.h and j_math.cpp headers