Implement Boyer-Moore Algorithm