Porting decoder tree

Porting decoder treee