New Z sorting

Control z sorting of whole tree via two new classes.
Also added a bit more functionality to vector2.