Begin of dynamic array implementation.