Scala implementation of the Playfair cipher