Trying to implement some easy ciphers from Discrete Structures