Started Gremlin version of getCommonAncestors. Doesn't quite work yet.