removed SlicePairCmp because it's now unused