dtree class built

function implementation needed