a simple turing machine simulation for multiplication