In operator==(A1,A2), don't compare A1 with A1.