Function to make the most recent common ancestor (MRCA) matrix of a tree, where entry (i,j) gives the MRCA of tips i and j.
The function is linear, exploiting the fact that the tree is rooted.
Usage
linearMrca(tree, k = 0)
Arguments
tree
an object of the class phylo which should be rooted.
k
(optional) number of tips in tree, for faster computation