Created a dynamic array stack