fix binarysearchtree interface