rank bst