Added parent attributes in Node. Added a function to remove null productions in Node and TreeSet. Added appropriate tests.