added AManagerSingleton<T>

this is my version of the manager singleton