a C code attempt for dictionary.c used in edx course cs50