Condition to check if its a leaf or not has been removed since we are not adding leaf nodes to tree itself.