Fix implementation of encrypt to handle multiple words properly and refactor appropriate test cases.
Implement exhaustive key search function returning (a,k) key pair based on decryption that contains most common two- and three-letter words.