Change ht_destroy to free all keys and values and entries.
Add dealloc function and implement it in vector.