Automatic Generation Of Hardware Tree Classifiers