function out = search(T, x)
if isempty(T) 
    out = false; return;
elseif T.key - x < 0.0001
    out = true; return;
elseif T.key > x
    out = search(T.left, x);
else 
    out = search(T.right, x);
end;