Simple hash table implementation