separate chaining hash with array resizing