But i need unique elements and not sorted, how to achive this?
You have unique elements, and they're not sorted. I think you have achieved that.
If you want the order of insertion preserved, use a vector. You'll have to manually check for duplicates if there's a possibility of them existing, but it'll get the job done.