pendant vertex in a tree - Search