Switch MGraph to HashMap and HashSet

Hi Rob,

This is another patch on top of the other pull requests I sent earlier. After the previous changes, rdf4h still didn't give me the performance I needed, so I switched out the Map and Set implementations. This worked pretty well for my workload, perhaps it's useful to upstream. Let me know what you think. I'll rebase if needed.

cheers, Maarten