pair was ugly, and difficult to reorder, also taking Cont<T,K>& instead of Cont<T&,U&>