Playfair algorithm written in Java (Android)