Initial commit of stats.c
Updated Makefile to build stats and use c99