you can use std::queue