Create template.c

simple template for algorithms implementations