vigenere: Use array module

Instead of doing array manipulations itself.

Signed-off-by: Celelibi <celelibi@gmail.com>