Set up add function for hash table