Tree transformer&TreeTransform

To speedup discussion I propose my implementation