Optimising brainfuck interpreter written in C++