Added functionality to bstree