order-independent Stamp implementation using Set container