added 'exists' method to binary tree