Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=56801
Improve performance of org.apache.tomcat.util.file.Matcher which is to filter JARs for scanning during web application start. Based on a patch by Sheldon Shao.

It is backport of r1615876 and r1617470.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc7.0.x/trunk@1617475 13f79535-47bb-0310-9956-ffa450edef68