Trying some algorithms in C language.