added a queuing class

view the example in TestQueue.html