Data structure and Algorithm in C