[WIP] Fix ht interface

Resubmit from #105 onto master
But the user has to know the hash of the inserted element so he can retreive it afterwards.