bst tree check and level travel