Boyer Moore string search implementation in C