Cleaned Up Mersenne class