Queue

and some refactoring of the lists and stack