Tree based DSA (I)