Implementation for "Add-one function" automaton using the Turing Machine concept