Refactors GenericStack, implements IntegerStack using int[].