Queue

add in a queue structure, this one taken from asap