conversion to smart pointers
Merge pull request #1 from pauldardeau/smart-pointers

conversion to smart pointers