implement BST filter-between-values