multiple stacks using arrays