Pattern detector
Merge pull request #3 from ahcorde/master

Pattern detector