add changeChildIndex method to Tree