RSA Implementation in C