implementation of an Enigma encrypting machine in C++