Implemented a simple hash table with chaining