C++ implementation of brainf_ck