PipeLined Grep Search Application-c++