3 stacks in array