Refactor
Find similar pairs