RSA algorithm using c