adding header file to c-code

added math.h to each .c file. This was causing some issues when using
alternate compilers.