Fix code to calculate path parents.
Add code to build tree of rings.
Remove code to try to determine path orientation at creation time (can't
be done).