Create pattern.recognition.py

Looks for patterns in the data. You specify the length.