pub type ExtremaMap<K, V> = BTreeMap<K, HashMap<V, isize>>;
pub struct ExtremaMap<K, V> { /* private fields */ }