Adding delete tree function