implement push method for multiple stacks using an array