Declared and initialized int variable for the degree of the tree.