Simple hash table implementation in C