Modified set to use a map[interface{}]struct{} (empty struct) instead of a map[interface{}]bool to save memory since an empty struct requires 0 bytes.