check balance
create bst