private void queueInorder(BSTNode node){
        //Fill queue inorder
        if(node.getLeft() != null) {
            queueInorder(node.getLeft());
        }

        Term t = (Term)node.getTerm();
        queue.add(t);

        if(node.getRight() != null){
            queueInorder(node.getRight());
        }
    }