Magic O(logn) RSA decryption algorithms