completed vigenere.c