completed shrinking and doubling of hash table