implementing HashTable methods