implementing data structure in c language.