Internal helper function for TumPur_LogLik_CPP when NumIntMethod == "Gregory"

LogTrapezoidalInt_CPP(lower, upper, n, a, b, q, TC, RC, curTR, curRC)