Brain Fuck implementation in C++