stack + queue problems