added table resizing to insert in hash table implementation