Comparing hashtables in C and C++