simple dynamic hash-table with separate chaining