Tree Reordering Done

I've tested it as much as I could so hopefully there are no bugs that I
haven't found