add miller-rabin primality test to Ruby module