some basic data structure and algorithm implemented in C language