bianry tree
reverse pair