I'm new at this too, but I wonder if you need to merge the output trees. Have you tried just returning "outputTrees" without the merge?