Implementation of decision trees