2 simple implementations of hash table