removed size field from tree, replaced size == 0 with a check to see if the root is null