Implement the majority vote algorithm to find an element appears at least n/2 times in the collection.