Learing Array Stack implementation