also return whether a pair is amicablePair.