Encryption / Decryption using binary trees