started implementation of bst