BSTree class added and defined