added serialization for patterns
added patterns
added test implementation of patterns
Merge branch 'master' of https://github.com/hipsterfister/DSM.git