Combination update with Hash for Unique set problem