Add an implement of auto_ptr template class