Adding a templatised singleton
Thread-safe singleton template