Dictionary implementation in C