This adds a sorted search tree for matchining filters to a template more efficiently. Each filter is split on "." and each element is added to the tree. Patterns with matching prefixes are added under the same subtree.