Introduced a struct hash_table_t to clean the code a bit.