Stack data structure based on array