Design and implement a hash table which uses chaining