MRCA function

Most recent common ancestor