btree search with recursion and no recursion