Use unique_ptr for managing array pointers