No sorry..actually i meant that (100 200) pair and (200 100)pair are both same for me..so i want only either (100 200) or (200 100)pair in the output.So if i have elements (X Y) it is same as (Y X) too..I need only one pair from the both..it can be any thing...