Added probabilistic tests.

* Fermats little theorem. ~0.5% errors at 10 random iterations.
* Also, added SPOJ test problem.