http://programmingpraxis.com/2009/04/03/programming-the-turing-machine/