A basic ENIGMA simulator in C