Cuckoo hashing in C