Tree handling functions - node up - node down