simple C language template library