Working isIrreducible, and some tests for it.
Fix comparison of empty arrays, add function generate irreducible polynomial mod n
Add basic tests for polynomials
Added tests for polynomials, exposed polynomial rem, fixed failure to convert in polynomial div