added a parent property in the tree data structure