Added common operations to set and hash table.