#5 refactored the toString methods in Node and Polynomial