In c++ as I hate java queue api