add majority element
add majority element