The path of modular programming

"main" function added to polygon.c to check if the functions are okay when compiling.
structures and prototypes moved to polygon.h.