Stack with arrays