C implementation of my Automata university course assignment