implement bf traversal for bst