a simple implementation of hash table