Initial implementation of dynamic array in C++.