Updates to tree class
Fixing bug in search method
Updating search example