compute trees for both discrete encodings and include in out.txt