Turing machine emulator