Added delete method for tree