init stacknqueue