Implementation of RSA public-key cryptosystem in C++