Simple Turing Machine Emulator in Haskell