Adding public API to allocate a Dynamic list class