Majority Element, sorting