Add dynamic array in C