Created a program to print polynomial to file