This function creates a matrix where columns 1 and 2 correspond to tip labels and column 3 gives the depth of the MRCA of that pair of tips.
It is strongly based on treeVec and is used by relatedTreeDist and treeConcordance where tip labels belong to "categories".