Implementation of RSA in Java - done for academic curiosity, not actually production