addressed one more comment in the code review: changed the visibility of the constructor of PatternMatcher back to private