Perform rehashing of the old keys after resizing the table.
Perform rehashing of the old keys after resizing the table.

Also refactor code for freeing the table array.

abhinav-upadhyay/spell,abhinav-upadhyay/spell