add majority-element