Resized the array for the resizing stack implementation by halving it when it's at 25% capacity.