Added gen, mod, and iter implementations of sieve.