code to generate decision trees based on expert advice