Added a second hash table, merging two tables, and checking key existance