Algorithm for primality test using Fermat's little theorem
Added a function to compute modular exponentiation (same method as the other one, but will enable computations with number bigger than u64).