Reorganize tree