Added a getItem(key) function to the hashtable for constant time lookup