grep.c regex bug fixed, -o functionality implemented