1. add the singleton pattern.
2. add the thread safety singleton.

Add by Troy Young, 02/09/2014