generate decision tree in ID3 algorithm