tree dist backup

Working code with tree distribution when width=1