added decision tree logic

added decision tree logic