singleton design pattern l g thread safe and a fast singleton implementation