added PatternRecognition starting algorithm