Majority Elem

two method.
Revert "Majority Elem"

This reverts commit 749c9176bee1ab7c953a21836b29ca3e19de510a.
Revert "Revert "Majority Elem""

This reverts commit e32c53012b84d63eb4b64e5408d61eac648a3911.