Dynamically Sized Array Cpp