Root depth sorting and coordinate transformation

Depth sorting among the root patches and the associated coordinate
transforms of the observer's coordinates into the respective root
patch's coordinate system were finished.