Decision tree code and results