Implementation of a DTree from machine learning