factorial module w/ method to count # of times a factor appears
modular arithmetic module w/ multiplicative inverse, b^n mod m methods