C++ Brainfuck implementation