如果decrement()可以不可以到head节点,那么应改成node=y->left,如果decrement可以到达head节点,那么应改成if(node!=y) node=y和increment()一致