Initial bst implementation done, needs testing