cleaned up the code a bit, and removed the external mersenne random generator library, since it's build into C11