Some Algorithm code in C .