hash table: clean up code for separate chaining