public static Dictionary<T1, T2> DictionaryFromArray<T1, T2>( Pair<T1, T2>[] arr, IEqualityComparer<T1> comparer )