add install cmd (CMakeList)
use c++11

- replace auto_ptr with shared_ptr
- use shared_ptr