A simple simulator for turing machines