[inmemory] Implement Set as map of empty structs, as struct{} takes

no memory. Also it looks more clear.