introduced overloaded version of StructuredElemStack.match