[WIP] Fix ht interface

Resubmit from #105 onto master
I thought we agreed on one function removing elements with similar hashes and an `_ndel` function removing also elements which have not the same hash, as discussed in #108