Use a Hashset to not append duplicates

When building the reverse deps HashMap we insert duplicates into the
mapping as we use a Vector to store it in. A HashSet prevents duplicates
from being added.

Closes: #2
3 jobs for reverse_deps_hashset in 1 minute and 37 seconds (queued for 3 seconds)