Use a faster sets implementation available since OTP 24

Since OTP 24 a version of sets implemented using maps is available [1]

Replace a few case where we use sets with the new implementation.

[1] https://www.erlang.org/doc/man/sets.html
3 files changed