added swap function in product_variants
ref #23