Implementation of data structures, in C