getMRCA method for stTrees
Function to calculate join costs on a species tree