Added function to get coeff of poly and fixed a bug when creating T(0).