Custom HashTable implementation