equals, hashCode and toString methods for P2Set