Returns true, if the tree contains value.
Returns true, if the tree contains value.
If supplied, compare is used to compare value with values already present in the tree. compare must be consistent with the ordering of values already present in this tree, but it may supply a more efficient implementation of the comparison operation for this very invocation of contains.