Removed redundant fields isLeaf and isRoot from Node class.