Added singleton template.
Merge pull request #5 from viktor-malieichyk/master

Added singleton template.