Implement Stack by dynamical array