add method to generate a amicablePair.