Performance improvement: Special Set implementation for two-element sets