created BSTree framework