Simulators for Determinate Finite Automata (DFA) and Turing Machine (TM)