Added contains method

It checks to see if a value is present in the tree