Majority element in array