Code to export ctree from R and import it into C#