Turing Machine implementation in Java.