Implement stack with Array