simple dictionary implementation in c