Implementation of data structures in C/C++