A pattern searching function that uses Bad Character Heuristic of Boyer Moore Algorithm
void search ( string txt , string pat ) { int m = pat . size ( ) ; int n = txt . size ( ) ; int badchar [ NO_OF_CHARS ] ;