pairwise added to NUtils