Updated Pointers

Changed from default C++ pointers to the smart pointer "auto_ptr"
provided in the standard library.