add vigenere encode and index of matching