Decision Trees For Optimizing Pattern - Matching Algorithms in Production Systems