updeated List_dynamic_array.cpp file