Implementing hash table methods