Implementing Rabin Cryptosystem in C++