Implement genlib

Implement genlib:

function mpz_class gen::kbit_prime_random(int k)
generates kbit prime random using Miller-Rabin Primality test