DTree algo complated