Stacks using arrays implemented.