various_simple_algorithm_in_C