Implementation of unix shell in C++