add and resolve Majority_Element