pub fn get_dict_min_pair(x: &(usize, usize)) -> (usize, usize)