add Pattern Analyzer and SingletonPatternSearch #3.