Data structures code in C