Breaking ciphers in haskell