Turing machine with multiple tapes and stacks