Implementation of a Turing Machine in C++