Learning Co-segmentation by Segment Swapping for Retrieval and Discovery