Stack implementation as array.