pub fn majority_vote<T: Eq>(a: &[T]) -> Option<(&T, usize)>
Boyer-Moore majority vote algorithm
Time complexity $O(n)$