Implementation of Decision tree engine from scratch