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