Fixed an error in Boyer-Moore majority part