Added functionality to make d2pi Tree
Added functionality to make d2pi Tree