trivial implementation of RSA in Java