Added BST tree for use in trends