applyBranchLengths function

Applies the branch lengths of a reference tree to a target