Adding dynamicarray.cpp