Switched auto_ptr to std::unique_ptr in CreateNewBlock