BST with rank augmented