a double stack is created from a single array