implemented binarytreesearcher