implementation of resizing sperate chaining hash table