Basic RSA implementation in java