Added the Pattern class.
Merge pull request #1 from ICanBoogie/pattern_class

Added the Pattern class.