Adjusted array stack data structure.
Defined linked stack data structure.