Update main.c

Changed add polynomial values to double