CORRELATION METHOD FOR RECOGNIZING PATTERNS