Adding Singleton pattern and the example of it.

Signed-off-by: Tomasz Kamiński <kaminski.tomasz.a@gmail.com>