pub fn majority<T>(data: Vec<T>) -> Option<T>where T: PartialEq,
Returns the majority value of the given data set, or None if there is no majority.