BST integer application