writeNexus function

Write a tree to file in Nexus format