Simple turing mashine simulator