training code for Data Structures and Algorithm Analysis in C