Added getNodeList() method to tree.