BFshell in C++ without pointers