Updated such that pairs are more unique, such that for each pair (i, j), i < j.