Patterns in C: Singleton