Implementation of the AKS Primality Test algorithm.
A Polynomial class was created specifically for the implementation of the AKS test. Although the class may work as expected for most input, certain methods were built to be optimized for the purposes of the AKS test.