Hash table with chaining to binary trees implemented in C