Made improvements in Polynomial