Implemented IDisposable for Pattern classes.
Merge pull request #164 from mkrueger/disposepatterns

Implemented IDisposable for Pattern classes.