Changed `contains` to `in` to fix

```
WARNING: contains(collection, item) is deprecated, use in(item, collection) instead
 in contains at reduce.jl:238
```