added BinTree interface