pub fn invert_index<T1: Ord + Clone, T2: Ord + Clone>( k_vs: &BTreeMap<T1, BTreeSet<T2>>, ) -> BTreeMap<T2, BTreeSet<T1>>