introduced overloaded version of function StructuredElemStack.match