Cython version of SimpleRSA for faster computation