grep.cpp basic funcionality working