[Design patterns]

Adds Singleton, Factory, Iterator and Decorator (in progress) examples.