Moved ListAncestors and FindCommonAncestor helper functions from inside of NiGeometry to public interface.