added barrett rmod test.  seems to work.  still unsure of source of error in exponentiation.