Conditionally check if the tree is ultrametric

The (hidden) setting "checkUltrametric" was added to determine whether
to check for ultrametricity of the input tree.