Reimplement hash table remove method