Adding Tree utils lib

Add tree utils