Create New Array From Existing Array Of Pointers In Cpp