Implementation of a Generic DecisonTree